package com.hunanwenli.service.sk;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;

@Component
@FeignClient(value = "003-shopseckill-producer")
public interface FeignSkService {


    @GetMapping(value = "/sk/addSpikeToken/{shopId}/{tokenQuantit}/{time}")
    String addSpikeToken(@PathVariable("shopId") Long shopId,
                         @PathVariable("tokenQuantit")Long tokenQuantit,
                         @PathVariable("time") Long time);


    @GetMapping(value = "sk/allGoods")
    String allGoods();


    @GetMapping(value = "sk/searchShop/{shopName}")
    String searchShop(@PathVariable("shopName") String shopName);

    @GetMapping(value = "sk/fastShop")
    String fastShop();

    @GetMapping(value = "sk/groupShop")
    String groupShop();

    @GetMapping(value = "sk/addDiscountGoods/{uid}/{time}/{goodName}/{goodStoke}/{goodPrice}/{goodPicture}")
    String addDiscountGoods(@PathVariable("uid")Long uid,
                                   @PathVariable("time") Long time,
                                   @PathVariable("goodName")String goodName,
                                   @PathVariable("goodStoke")int goodStoke,
                                   @PathVariable("goodPrice")double goodPrice,
                                   @PathVariable("goodPicture") String goodPicture);

    @GetMapping(value = "sk/myOrderMsg/{phone}")
    @ResponseBody
    String myOrderMsg(@PathVariable("phone") String phone);

    @GetMapping(value = "sk/seckill/{shopId}/{phone}")
    String seckill(@PathVariable("shopId")Long shopId,@PathVariable("phone")String phone );
}
